import turtle as t
t.speed(0)
t.pensize(1)
t.ht()
def flag(x,y):  
    t.setheading(0)
    t.begin_fill()
    t.color('red','red')
    t.penup()
    t.goto(x,y)
    t.forward(300)
    t.right(90)
    t.forward(200)
    t.right(90)
    t.forward(300)
    t.right(90)
    t.forward(200)
    t.end_fill()
#flag(-200,-200)
#flag(-200,200)
#flag(200,-200)
#flag(200,200)
#星星
def star(an,x,y,l):#an=angle 角度  l=long 长度
    t.color('yellow','yellow')
    t.setheading(an)
    t.penup()
    t.goto(x,y)
    t.pensize(1) 
    t.begin_fill()
    t.forward(l)
    t.right(144)
    t.forward(l)
    t.right(144)
    t.forward(l)
    t.right(144)
    t.forward(l)
    t.right(144)
    t.forward(l)
    t.end_fill()
#star(0,-160,150,70)
#star(270,-85,190,30)
#star(0,-75,150,30)
#star(-15,-75,120,30)
#star(315,-85,105,30)
def chineseflag(x0,y0,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5):
    flag(x0,y0)
    star(0,x1,y1,70)
    star(270,x2,y2,30)
    star(0,x3,y3,30)
    star(-15,x4,y4,30)
    star(315,x5,y5,30)
chineseflag(-200,200,-160,150,-85,190,-75,150,-75,120,-95,105)
chineseflag(-200,-200,-160,-250,-85,-210,-75,-250,-75,-280,-95,-295)
chineseflag(200,200,240,150,315,190,325,150,325,120,305,105)
chineseflag(200,-200,240,-250,315,-210,325,-250,325,-280,305,-295)
